﻿@page
@model AlipayModel
@{

}

<div class="form-horizontal" style="margin-top:20px;">
    <div class="form-group">
        <label class="col-sm-2 control-label" for="out_trade_no">商户订单号</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="out_trade_no">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="subject">订单名称</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="subject">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="total_amount">付款金额</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="total_amount">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="body">商品描述</label>
        <div class="col-sm-8">
            <input type="text" class="form-control" id="body">
        </div>
    </div>
    <div class="form-group">
        <label class="col-sm-2 control-label" for="quit_url">付款退出回跳</label>
        <div class="col-sm-8">
            <div class="input-group">
                <div class="input-group-addon">http://</div>
                <input type="text" class="form-control" id="quit_url">
            </div>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-8 col-sm-offset-2">
            <button id="submit" type="submit" class="btn btn-primary">确认</button>
        </div>
    </div>
    <div class="form-group">
        <div class="col-sm-8 col-sm-offset-2">
            <div class="checkbox">
                <label>
                    <input id="agree" checked type="checkbox" value="agree">
                    如果您点击“付款”按钮，即表示您同意该次的执行操作。
                </label>
            </div>
        </div>
    </div>
</div>
<script>
    function GetDateNow() {
        var vNow = new Date();
        var sNow = "";
        sNow += String(vNow.getFullYear());
        sNow += String(vNow.getMonth() + 1);
        sNow += String(vNow.getDate());
        sNow += String(vNow.getHours());
        sNow += String(vNow.getMinutes());
        sNow += String(vNow.getSeconds());
        sNow += String(vNow.getMilliseconds());
        document.getElementById("out_trade_no").value = sNow;
        document.getElementById("subject").value = "测试";
        document.getElementById("total_amount").value = "0.01";
    }
    GetDateNow();
</script>
